<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<TITLE> <? echo $title;?> </TITLE>
<base href="<?php echo base_url() ?>" />
<link REL="SHORTCUT ICON" href="favicon.ico">
<LINK href="login_images/login.css" type="text/css" rel=stylesheet>
<SCRIPT src="js/common.js" type="text/javascript"></SCRIPT>
<SCRIPT src="js/jquery.min.js" type="text/javascript"></SCRIPT>
<script type="text/javascript">
if (top.location != self.location) {top.location=self.location;}
function pressCaptcha(obj)
{
	obj.value = obj.value.toLowerCase();
}
</script>
<SCRIPT type="text/javascript">
 function fEvent(sType,oInput){
		switch (sType){
			case "focus" :
				oInput.isfocus = true;
			case "mouseover" :
				oInput.style.borderColor = '#9ecc00';
				break;
			case "blur" :
				oInput.isfocus = false;
			case "mouseout" :
				if(!oInput.isfocus){
					oInput.style.borderColor='#84a1bd';
				}
				break;
		}
	}
 function check_form()
	{
            if ($('#username').val()=="")
		{
                alert("对不起，用户名不能为空!");
	        $('#username').focus();
		}else{
                   if ($('#password').val()=="")
                   {
                       alert("对不起，密码不能为空!");
                       $('#password').focus();
	        }else{
                 $('#loginForm').submit();
                }
                }
         
	}
 function clear_form(){
     $('#username').val("");
     $('#password').val("");
     $('#username').focus();
 }
 function chk_name(){
      if ($('#password').val()!=""){
          $('#loginForm').submit();
      }else{
            $('#password').focus();
      }

 }
</SCRIPT>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	overflow:hidden;
}
.STYLE3 {color: #528311; font-size: 12px; }
.STYLE4 {
	color: #42870a;
	font-size: 12px;
}
-->
</style></head>
<body>
<form id="loginForm" method="post" name="login" id="login" action="<?php echo site_url("main/checklogin"); ?>" target="_top">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#e5f6cf">&nbsp;</td>
  </tr>
  <tr>
    <td height="608" background="login_images/login_03.gif"><table width="862" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="266" background="login_images/login_04.gif">&nbsp;</td>
      </tr>
      <tr>
        <td height="95"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="424" height="95" background="login_images/login_06.gif">&nbsp;</td>
            <td width="183" background="login_images/login_07.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="21%" height="30"><div align="center"><span class="STYLE3">用户名</span></div></td>
                <td width="79%" height="30"><input  type="text" id="username" name="username" onkeydown="javascript:if(event.keyCode==13){chk_name();}" onFocus="fEvent('focus',this)" onBlur="fEvent('blur',this)" onMouseOver="fEvent('mouseover',this)" onMouseOut="fEvent('mouseout',this)"   style="height:18px; width:130px; border:solid 1px #cadcb2; font-size:12px; color:#81b432;"></td>
              </tr>
              <tr>
                <td height="30"><div align="center"><span class="STYLE3">密码</span></div></td>
                <td height="30"><input type="password"  onkeydown="javascript:if(event.keyCode==13){check_form();}" name="password" id="password" onMouseOver="fEvent('mouseover',this)" onFocus="fEvent('focus',this)" onBlur="fEvent('blur',this)" onMouseOut="fEvent('mouseout',this)" style="height:18px; width:130px; border:solid 1px #cadcb2; font-size:12px; color:#81b432;"></td>
              </tr>
              <tr>
                <td height="30">&nbsp;</td>
                <td height="30"><img src="login_images/dl.gif" width="81" height="22" border="0" usemap="#Map"></td>
              </tr>
            </table></td>
            <td width="255" background="login_images/login_08.gif">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="247" valign="top" background="login_images/login_09.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="22%" height="30">&nbsp;</td>
            <td width="56%">&nbsp;</td>
            <td width="22%">&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="44%" height="20">&nbsp;</td>
                <td width="56%" class="STYLE4">版本 2009V1.5 </td>
              </tr>
            </table></td>
            <td>&nbsp;</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td bgcolor="#a2d962">&nbsp;</td>
  </tr>
</table>
 </form>
<map name="Map">
    <area shape="rect" coords="3,3,36,19" href="javascript:check_form()"  alt="登录" title="登录">
    <area shape="rect" coords="40,3,78,18" href="javascript:clear_form()"  alt="重置" title="重置">
</map>
</body>
</html>
